package cn.valorin.command.sub;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import cn.valorin.command.SubCommand;
import cn.valorin.command.way.InServerCommands;
import cn.valorin.gui.custom.Water;

public class WaterMachine extends SubCommand implements InServerCommands{

	public WaterMachine() {
		super("watermachine", "wm");
	}

	@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) 
	{
	  Player p = null;
      if (sender instanceof Player)
      { p = (Player)sender; }
      p.openInventory(Water.get(p));
	  return true;
	}

}
